package entity

type Log struct {
	Id      int    `gorm:"column=id;primaryKey" json:"id"`
	Account string `gorm:"column=account" json:"account"`
	User    *User  `gorm:"-" json:"user"`
	ApiPath string `gorm:"column=api_path" json:"apiPath"`
	Time    int64  `gorm:"column=time" json:"time"`
	IP      string `gorm:"column=ip" json:"ip"`
}

func (log Log) TableName() string {
	return "log"
}
